<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>前台简历</title>
<!-- 导入主题样式 -->
<link rel="stylesheet"
	href="../../public/easyui/themes/default/easyui.css" />
<!-- 导入图标库 -->
<link rel="stylesheet" href="../../public/easyui/themes/icon.css" />
<link rel="stylesheet" href="../../public/css/app.css" />
<link rel="stylesheet" href="../../public/css/front_head.css" />
<link rel="stylesheet" href="../../public/css/front_program.css" />
<link rel="stylesheet" href="../../public/css/resume.css" />
<!-- js文件，顺序：jq，easyui，国际化包 -->
<script src="../../public/js/jquery.min.js"></script>
<script src="../../public/js/recep_jy.js"></script>
<style type="text/css">
#tables {
	border: 1px solid black;
	border-collapse: collapse;
}

#tables th {
	border: 1px solid black;
}
#tables td {
	border: 1px solid black;
}
</style>
</head>
<body
	style="background-image: url(../../public/images/bg_text.png); background-repeat: no-repeat;">
	<jsp:include page="header.jsp"></jsp:include>
	<div class="welcome"></div>
	<div class="resumeul">
		<ul>
			<a onclick="addresume('${user.student.id }')"
				style="font-size: 16px; cursor: pointer;"><li>创建简历</li></a>
			<a href="../../resumes/mineresume/${user.student.id }"
				style="font-size: 16px;"><li>我的简历</li></a>
			<a href="../../resume_great" style="font-size: 16px;"><li>优秀简历</li></a>
		</ul>
	</div>
	<div class="easyui-accordion" style="overflow: hidden; width: 79%;"
		border="false">
		<c:forEach items="${r }" var="r" varStatus="rstart">
			<div title="${r.resume_name }--${r.title } (${r.state })"
				class="mine_resume">



				<div style="padding-top: 10px">
					<table id="tables" width="95%" id="table" align="center">
						<tr height="35">
							<td width="190" colspan="3"><strong>${r.title }</strong><img
								title="编辑" class="resumepic" src="../../public/images/edit.png"
								onclick="addresume('${user.student.id }','${r.tb_resume_id }')">
								<img class="resumepic"
								onclick="deleteResume('${r.tb_resume_id}')" title="删除"
								src="/public/images/delete.png"></td>

							<td width="190" align="center"><a class="tomore"
								target="_Blank" style="padding-right: 35px; font-weight: bold;"
								href="../../resumes/preview/${r.tb_resume_id }">简历详情</a></td>
						</tr>
						<tr>
							<th align="center" bgcolor="#eee" colspan="5"
								style="color: red;">基本资料</th>
						</tr>
						<tr height="35" align="center">
							<td width="190"><strong>姓名</strong></td>
							<td width="190">${r.resume_name }</td>
							<td width="190"><strong>性别</strong></td>
							<td width="750">${r.resume_sex }</td>

						</tr>
						<tr height="35" align="center">
							<td width="190"><strong>年龄</strong></td>
							<td width="190">${r.age }(${r.birth })</td>
							<td width="190"><strong> 籍贯</strong></td>
							<td width="750">河南南阳</td>
						</tr>

						<tr height="35" align="center">
							<td width="250"><strong>毕业学校</strong></td>
							<td width="750" colspan="3"><a
								href="http://www.ccec.edu.cn/" target="_blank"><strong>${r.school }</strong></a></td>
							<!-- <tr height="35" align="center" >
<td width="190"> <strong>专业</strong></td> 
<td width="190">信息管理与信息系统 </td> 
<td width="190"> <strong>学历</strong></td> 
<td width="750">本科 </td> 
</tr>  -->
						<tr>
							<td align="center" bgcolor="#eee" colspan="5"
								style="color: red;"><strong>工作经验</strong> <img
								class="resumepic" title="添加工作经验" src="/public/images/add.png"
								onclick="addwork('${r.tb_resume_id}')"></td>
						</tr>
						<tr>
							<td align="center" width="633.33"><strong>面试公司</strong></td>
							<td align="center" width="633.33"><strong>面试职位</strong></td>
							<td align="center" width="333.33" colspan="3"><strong>操作</strong></td>
						</tr>
						<c:forEach items="${re }" var="re">
							<c:if test="${re.resume_id==r.tb_resume_id }">
								<tr>

									<td align="center" width="633.33" height="40"><strong>${re.company }</strong>
									</td>
									<td align="center" width="633.33" height="40">${re.job }</td>
									<td width="333.33" height="40" align="center" colspan="3">

										<img title="编辑工作经验" class="resumepic"
										src="/public/images/edit.png"
										onclick="addwork('${r.tb_resume_id}','${re.tb_resume_experience_id }')">
										<img class="resumepic"
										onclick="deleteWork('${re.tb_resume_experience_id }')"
										title="删除工作经验" src="/public/images/exdelete.png">
									</td>
								</tr>
							</c:if>
						</c:forEach>
						<tr>
							<td align="center" bgcolor="#eee" colspan="5"
								style="color: red;"><strong>项目经验</strong><img
								class="resumepic" title="添加项目经验" src="/public/images/add.png"
								onclick="addproject('${r.tb_resume_id}')"></td>
						</tr>
						<tr>
							<td align="center" width="633.33"><strong>项目名称</strong></td>
							<td align="center" width="633.33"><strong>项目公司</strong></td>
							<td align="center" width="333.33" colspan="3"><strong>操作</strong></td>
						</tr>
						<c:forEach items="${rp }" var="rp">
							<c:if test="${rp.resume_id==r.tb_resume_id }">
								<tr>

									<td align="center" width="633.33" height="40"><strong>${rp.title }</strong>
									</td>
									<td align="center" width="633.33" height="40">
										${rp.company }</td>
									<td width="333.33" height="40" align="center" colspan="3">
										<img title="编辑项目经验" class="resumepic"
										src="/public/images/edit.png"
										onclick="addproject('${r.tb_resume_id}','${rp.tb_resume_project_id }')">
										<img class="resumepic"
										onclick="deleteProject('${rp.tb_resume_project_id }')"
										title="删除项目经验" src="/public/images/prdelete.png">
									</td>
								</tr>
							</c:if>
						</c:forEach>

					</table>

				</div>
			</div>
		</c:forEach>
	</div>
</body>
</html>